<template>
	<view class="content">
		<view class="info-item" @click="navigate('/page_other/union/characters-detail?name=人社部门详情&type=1')">
			<view class="left-item">
				<image :src="imageUrl+'/union/政府-人社部门1.png'" class="img"></image>
				<view class="title">人社部门</view>
			</view>
			<view class="iconfont icon-gengduo1"></view>
		</view>
		<view class="info-item" @click="navigate('/page_other/union/government-detail?name=教育部门详情&type=2&tabActive=2123')">
			<view class="left-item">
				<image :src="imageUrl+'/union/政府-人社部门2.png'" class="img"></image>
				<view class="title">教育部门</view>
			</view>
			<view class="iconfont icon-gengduo1"></view>
		</view>
		<view class="info-item" @click="navigate('/page_other/union/government-detail?name=工信部门详情&type=3&tabActive=2127')">
			<view class="left-item">
				<image :src="imageUrl+'/union/政府-人社部门3.png'" class="img"></image>
				<view class="title">工信部门</view>
			</view>
			<view class="iconfont icon-gengduo1"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imageUrl: ''
			}
		},
		methods: {
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
		},
		onLoad() {
			this.imageUrl = this.globalConfig.imageUrl
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		padding: 30rpx;

		.info-item {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 30rpx;
			padding: 30rpx;
			height: 180rpx;
			background: #fff;
			box-shadow: 0 0 10px 0 #efefef;
			border-radius: 20rpx;


			.left-item {
				display: flex;
				align-items: center;

				.img {
					width: 100rpx;
					height: 100rpx;
					border-radius: 10rpx;
					margin-right: 20rpx;
				}

				.title {
					font-weight: bold;
				}
			}

			.iconfont {
				font-size: 32rpx;
				color: #999;
			}
		}
	}
</style>